package com.example.designpatterns.visitor;

/**
 * 具体访问者一
 */
public class OneVisitor implements Visitor {

    @Override
    public void visitor(OneElement oneElement) {
        System.out.println("访问者一访问元素一 " + oneElement);
    }

    @Override
    public void visitor(TwoElement twoElement) {
        System.out.println("访问者一访问元素二 " + twoElement);
    }
}

